import request from "@/utils/request.js";

/**
 * 咨询师获取发送过消息的用户列表
 * @returns {*}
 */
export function getUserList() {
    return request({
        url: '/chatUser/chatUser/getUserList',
        method: 'get',
    })
}

/**
 * 获取历史消息
 * @param currentUserId
 * @param loginUserId
 * @returns {*}
 */
export function getHistoryMsg(currentUserId, contactId, params) {
    return request({
        url: '/chatUser/chatUser/getHistoryMsg',
        method: 'get',
        params: {
            currentUserId,
            contactId,
            ...params
        }
    })
}

/**
 * 获取已通过的预约咨询师
 * @returns {*}
 */
export function getCounselorChatList() {
    return request({
        url: '/chatUser/chatUser/getCounselorChatList',
        method: 'get',
    })
}

/**
 * 获取所有的联系人
 * @returns {*}
 */
export function getAllChatList() {
    return request({
        url: '/chatUser/chatUser/getAllChatList',
        method: 'get',
    })
}
